SPB Git

Repository Public

page.tsx 4.1 KB 86 lines tsx

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : ORIX App Universe8 * File             : src/app/[locale]/downloads/page.tsx9 * Module           : app10 * Repository       : https://git.spboucher.ai/orix-spboucher-ai11 * Project Website  : https://www.orixlab.dev12 * Created          : 2026-11-2113 * Last Modified    : 2026-11-2114 *15 * Author           : Simon-Pierre Boucher16 * Position         : Professor of Finance17 * Institution      : Université du Québec en Outaouais (UQO)18 * Organization     : SP Boucher19 * Website          : https://spboucher.ai20 * Git              : https://git.spboucher.ai21 *22 * Preferred Contact: support@spboucher.ai23 * Development      : dev@spboucher.ai24 * Support          : support@spboucher.ai25 * Security/Admin   : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License          : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { Metadata } from "next";44import Link from "next/link";45import { DownloadShelf } from "@/components/downloads/DownloadShelf";46import { Arrow } from "@/components/ui/Badges";47import { macDownloads } from "@/lib/downloads/list";48import { dict, href, isLocale, type Locale } from "@/lib/i18n";49import { alternates } from "@/lib/seo";5051export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {52  const { locale } = await params; const t = dict(locale as Locale);53  return { title: t.downloads.title, description: t.downloads.lead, alternates: alternates("/downloads", locale as Locale) };54}5556export default async function Downloads({ params }: { params: Promise<{ locale: string }> }) {57  const { locale: raw } = await params; const locale: Locale = isLocale(raw) ? raw : "en";58  const t = dict(locale), items = await macDownloads(locale);59  return (60    <>61      <header className="relative isolate overflow-hidden pb-6 pt-32 sm:pt-44">62        <div className="aurora -z-10" aria-hidden /><div className="stars -z-10" aria-hidden /><div className="gridlines -z-10" aria-hidden />63        <div aria-hidden className="pointer-events-none absolute inset-x-0 bottom-0 -z-10 h-40 bg-gradient-to-b from-transparent to-bg" />64        <div className="wrap wrap-wide">65          <p className="eyebrow">{t.downloads.eyebrow}</p>66          <h1 className="display mt-6 max-w-5xl !text-[clamp(2.6rem,6.6vw,5.4rem)]">{t.downloads.title}</h1>67          <p className="lead mt-7">{t.downloads.lead}</p>68        </div>69      </header>70      <section className="wrap wrap-wide section !pt-12" aria-label={t.downloads.title}>71        {items.length ? <DownloadShelf items={items} locale={locale} heading="h2" /> : <p className="card p-10 text-center text-ink2" data-testid="downloads-empty">{t.dl.noDmg}</p>}72        <ol className="mt-16 grid gap-x-10 gap-y-8 md:grid-cols-3">73          {t.downloads.steps.map(([title, body], i) => (74            <li key={title} className="rule pt-6">75              <span className="mono beam-text text-[0.8rem] font-semibold tracking-[0.16em]">0{i + 1}</span>76              <h2 className="h3 mt-3">{title}</h2>77              <p className="mt-2 text-[0.96rem] text-ink2">{body}</p>78            </li>79          ))}80        </ol>81        <p className="mt-14 text-[0.9rem] text-ink3">{t.downloads.mobile} <Link href={href(locale, "/apps")} className="link inline-flex items-center gap-1.5 font-semibold text-ink2">{t.home.allApps}<Arrow /></Link></p>82      </section>83    </>84  );85}86
Files main
Menu

Theme